package com.example.demo.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class Product {
    private int id;
    private String name;
    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal price;
    private int sum;
}
